package com.caifu.mapper;

import com.caifu.pojo.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author yb
 * @since 2021-03-01
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 获取角色已授权用户
     *
     * @param id 角色id
     * @return
     */
    List<SysUser> getRoleAuthorizedList(Integer id);

    /**
     * 获取角色未授权用户
     *
     * @param id
     * @return
     */
    List<SysUser> getRoleUnauthorizedList(Integer id);
}
